PDF4Java Reference Documentation
com.o2sol.pdf4java.document Package / PDFDocument Class / save Method / save(Stream,boolean) Method
Destination stream.
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
In This Topic
    save(Stream,boolean) Method
    In This Topic
    Saves the PDF document to the specified stream.
    Syntax
    public void save( 
       Stream stream,
       boolean enableObjectCompression
    )

    Parameters

    stream
    Destination stream.
    enableObjectCompression
    When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
    Exceptions
    ExceptionDescription
    if a java.io.IOException appears during the save operation.
    See Also